package com.oceanread.cn.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oceanread.cn.entity.SideScan;
import com.oceanread.cn.entity.Turbine;
import com.oceanread.cn.mapper.SideScanMapper;
import com.oceanread.cn.mapper.TurbineMapper;
import com.oceanread.cn.service.ISideScanService;
import com.oceanread.cn.service.ITurbineService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ISideScanServiceImpl extends ServiceImpl<SideScanMapper, SideScan> implements ISideScanService {
    public List<SideScan> getall() {
        return baseMapper.getall();
    }

    @Override
    public List<SideScan> query(int page, int size, String key, String value) {
        return baseMapper.query((page - 1) * size, size, key, value);
    }
    @Override
    public List<SideScan> equal(String key, String value) {
        return baseMapper.equal(key, value);
    }

    @Override
    public List<SideScan> getTablelist(int page, int size) {
        return baseMapper.getTablelist((page - 1) * size, size);
    }

    public Integer getnum() {
        return baseMapper.getnum();
    }

    public Integer getnumquery(String key, String value) {
        return baseMapper.getnumquery(key, value);
    }

    @Override
    public int insert(String PrjCode, String Code, String Name, String Area, String Time,
                      String CenterCoordinateX, String CenterCoordinateY, String CenterCoordinateZ,String url) {
        return baseMapper.insert( PrjCode,  Code,  Name,  Area,  Time,
                 CenterCoordinateX,  CenterCoordinateY,  CenterCoordinateZ,url);
    }
    @Override
    public Integer update(SideScan sideScan) {
        return baseMapper.update(sideScan.getSysid(),sideScan.getPrjCode(),sideScan.getCode(),sideScan.getName(),sideScan.getArea(),
                sideScan.getTime(),sideScan.getCenterCoordinateX(),sideScan.getCenterCoordinateY(),sideScan.getCenterCoordinateZ(),sideScan.getUrl());
    }

    public Integer delete(int sysid) {
        return baseMapper.delete(sysid);
    }

}
